package com.itheima.javawork.day04.test6;

public class TestInterface {
    public static void main(String[] args) {
        InterImpl ii = new InterImpl();
        ii.method();


    }
}


interface InterA{
    public  void showA();

    public default void method(){
        System.out.println("A.......method");
    }
}

interface InterB{
    public  void showB();

    public default void method(){
        System.out.println("B.......method");
    }
}

interface InterC extends InterA,InterB{


    @Override
    default void method() {
        System.out.println("InterC接口,解决代码逻辑冲突问题, 重写method方法");
    }
}

class InterImpl implements InterC{

    @Override
    public void showA() {

    }

    @Override
    public void showB() {

    }
}